<template>
<div class="details">
  <div class="left">
    <Menu/>
  </div>
  <div class="right">
    <router-view/>
  </div>
</div>
</template>

<script setup lang="ts">
import Menu from '@/pages/hospital/menu/index.vue'
import {hospitalInfoDetailStore} from '@/store/modules/hospitalStore'
import {useRoute} from 'vue-router'
import {onMounted} from "vue";
let hospitaStore = hospitalInfoDetailStore()
let $route = useRoute()
!onMounted(()=>{
  hospitaStore.getHospitalInfo(String($route.query.hosCode))
})
</script>

<style scoped lang="scss">

.details{
  display: flex;
  .left{
    width: 20%;
  }
  .right{
    width: 80%;
  }
}

</style>